//
//  QTZAppEntrance.m
//  QTZ
//
//  Created by ski on 2017/7/6.
//  Copyright © 2017年 ski. All rights reserved.
//

#import "JLCFAppEntrance.h"


@implementation JLCFAppEntrance

+ (id)sharedEntrance
{
    static dispatch_once_t onceToken;
    static JLCFAppEntrance *module;
    dispatch_once(&onceToken, ^{
        module = [[JLCFAppEntrance alloc] init];
    });
    return module;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

+ (void)load
{
#pragma mark -- 首页 --
    
    
    
}

- (void)handleOpenUrl:(NSString *)urlString userInfo:(NSDictionary *)userInfo from:(id)from complete:(void (^)(void))complete {
    NSString *strUrl = [urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
    NSURL *url = [NSURL URLWithString:strUrl];
    
    if ([url.scheme isEqualToString:QTZ_SCHEME]) {
        
    } else if ([@"itms-appss" isEqualToString:url.scheme] || [@"itms-apps" isEqualToString:url.scheme] || [@"itmss" isEqualToString:url.scheme]) {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
    }
}

@end
